<script setup lang='ts'>
import { onMounted, ref } from 'vue';
import MyTage from './components/MyTage.vue';
const myTagRef = ref(null)
onMounted(() => {
  console.log(myTagRef.value.msg)
  myTagRef.value.showAlter()
})
</script>

<template>
  <div>
    <div>父组件</div>
    <MyTage ref="myTagRef" />

  </div>
</template>

<style scoped></style>